package com.chuanyekeji.aokai.Controller;

import com.chuanyekeji.aokai.Mapper.LoginLogMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;

@CrossOrigin(origins = "*",maxAge = 3600)
@Controller
public class Login {

    @Autowired
    LoginLogMapper loginLogMapper;

    @RequestMapping("/index")
    String login() {
        return "index";
    }

    @RequestMapping("/")
    String defaultPage() {
        return "index";
    }
}
